package com.dao.impl;

import com.dao.UserDao;
import com.entry.User;
import com.util.DBHelper;


import java.util.ArrayList;


public class UserDaoImpl implements UserDao {

   private DBHelper db = new DBHelper();
   User user=new User();

    @Override
    public ArrayList<User> selectQuery(String account,String  password) {

        String sql = "select * from user where account=? and password=?";
        return db.selectinfo(sql,User.class,account,password);
    }
}
